home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 45
/
Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso
/
Aminet
/
game
/
role
/
ldmud-3.2-bin.lha
/
mud
/
doc
/
efun
/
query_command
< prev
next >
Wrap
Text File
|
2001-04-06
|
820b
|
30 lines
SYNOPSIS
string query_command(void)
DESCRIPTION
Give the text of the current command, or 0 if not executing
from a command.
The text is the command as seen by the parser, ie. after
modify_command and after stripping trailing spaces.
query_command() returns 0 when invoked by a function which was started
by a call_out or the heart beat. Also when a user logs in
query_command() returns 0.
EXAMPLE
void init() {
...
add_action("sing","sing");
...
}
int sing(string str) {
write("Your command was:"+query_command()+"\n");
return 1;
}
When ever you type "sing ..." you get "Your command was: sing ...".
SEE ALSO
add_action(E), query_verb(E)